package com.helloniu.red5.info;

import org.red5.io.amf3.ByteArray;

public class BussinessInfo {
	public BussinessUnit videoUnit = new BussinessUnit("video");
	
	public void writeData(ByteArray barr) {
		videoUnit.writeData(barr);    	
    }
	
	public String toString() {
		return "[" + videoUnit + "]";
	}
	
	public void upadte(BussinessUnit bunit) {
		if(bunit.type.equals(videoUnit.type)) {
			videoUnit.copyInfo(bunit);
		}
	}
}
